package com.platform.service.impl;

import com.platform.dao.IncomeDao;
import com.platform.entity.IncomeEntity;
import com.platform.service.IncomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2018-09-13 00:36:36
 */
@Service("incomeService")
public class IncomeServiceImpl implements IncomeService {
    @Autowired
    private IncomeDao incomeDao;

    @Override
    public IncomeEntity queryObject(Integer id) {
        return incomeDao.queryObject(id);
    }

    @Override
    public List<IncomeEntity> queryList(Map<String, Object> map) {
        return incomeDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return incomeDao.queryTotal(map);
    }

    @Override
    public int save(IncomeEntity income) {
        return incomeDao.save(income);
    }

    @Override
    public int update(IncomeEntity income) {
        return incomeDao.update(income);
    }

    @Override
    public int delete(Integer id) {
        return incomeDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return incomeDao.deleteBatch(ids);
    }
}
